package ltd.dujiabao.inventoryservice.dao;

import ltd.dujiabao.inventoryservice.domain.entity.ConsumedMessage;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * @author Bowie Du
 * @date 2025/7/12 18:07
 */

@Repository
public interface ConsumedMessageRepository extends CrudRepository<ConsumedMessage, Long> {

    boolean existsByMessageId(String messageId);

    int countByResult(Byte status);
}
